package com.niuwa.p2p.service.impl.messageTemplateCfg;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.message.MsgTempCfgDao;
import com.niuwa.p2p.entity.message.MsgTempCfg;
import com.niuwa.p2p.entity.message.MsgTempCfgKey;
import com.niuwa.p2p.service.messageTemplateCfg.IMsgTemplateCfgService;
import com.sun.mail.handlers.message_rfc822;

/**
 *@author futianliang
 *@date 2015年4月20日
 */
@Service
public class MsgTemplateCfgServiceImpl implements IMsgTemplateCfgService{
@Autowired
private MsgTempCfgDao msgTempCfgDao;
	@Override
	public int insert(MsgTempCfg record) {
		// TODO Auto-generated method stub
		return msgTempCfgDao.insert(record);
	}

	@Override
	public void truncate() {
		// TODO Auto-generated method stub
		msgTempCfgDao.truncate();
	}

	@Override
	public MsgTempCfg selectByPrimaryKey(MsgTempCfgKey key) {
		// TODO Auto-generated method stub
		return msgTempCfgDao.selectByPrimaryKey(key);
	}

}
